package demo06;

/*
 *  java.lang,StringBuilder类：字符串缓冲区，可以提高字符串的效率
 *  构造方法：
 *      public StringBuilder()：构造一个空的StringBuilder容器
 *      public StringBuilder(String str)：构造一个StringBuilder容器，并将字符串添加进去
 */
public class Demo01StringBuilder {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder();
        System.out.println(stringBuilder); // 空

        StringBuilder stringBuilder2 = new StringBuilder("abc");
        System.out.println(stringBuilder2); // abc
    }
}
